/*
*  Copyright 2019-2020 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package com.yuecai.modules.yc_user_coupon.service.dto;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;

/**
* @website https://el-admin.vip
* @description /
* @author dm
* @date 2020-07-21
**/
@Data
public class YcUserCouponDto implements Serializable {

    private Long id;

    /** 优惠券id */
    private Long couponId;

    /** 用户id */
    private Long userId;

    /** 失效时间 时间戳 */
    private Timestamp expireDate;

    /** 优惠券类型 关联字典表 COUPON_TYPE  1:全品类 2:限品类 3:限品牌 */
    private Integer couponType;

    /** 条件ID coupon_type 为 2 3 时有值 */
    private Long conditionsId;

    /** 条件的类型，0为金额，1为件数 */
    private Integer conditionType;

    /** 条件 */
    private BigDecimal conditions;

    /** 优惠的类型，0为金额，1为折扣 */
    private Integer discountType;

    /** 优惠 */
    private BigDecimal discount;

    /** 是否使用0否1是2锁定 */
    private Integer isUse;

    /** 优惠券使用时间 */
    private Timestamp useTime;

    /** 获取方式1注册赠券 2 物赠券赠送 3主动领取 */
    private Integer couponWay;

    /** 发放优惠券时间 */
    private Timestamp createTime;

    private String remarks;
}